package com.hg.common.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

/**
 * 分页DTO对象
 * Created by skh on 2018/1/11
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PageDTO {

	@Min(value = 1,message = "pageNum不能小于1")
	private Integer pageNum = 1;

	@Min(value = 1,message = "pageSize不能小于1")
	@Max(value = 20,message = "pageSize不能大于20")
	private Integer pageSize = 10;


}
